package com.smart.domain;

import javax.persistence.*;
import java.util.Date;

public class Post extends BaseDomain {

	public static final int POST_TYPE_MAIN = 1;//主帖

	public static final int POST_TYPE_REPLY = 2;//回复贴

	private Integer postId;

	private String postTitle;

	private String postText;

	/**
	 * 默认是回复贴
	 */
	protected Integer postType = POST_TYPE_REPLY;

	private Integer boardId;

	private Date createTime;

	private User user;

	private Topic topic;

	public Integer getPostId() {
		return postId;
	}

	public void setPostId(Integer postId) {
		this.postId = postId;
	}

	public String getPostTitle() {
		return postTitle;
	}

	public void setPostTitle(String postTitle) {
		this.postTitle = postTitle;
	}

	public String getPostText() {
		return postText;
	}

	public void setPostText(String postText) {
		this.postText = postText;
	}

	public Integer getPostType() {
		return postType;
	}

	public void setPostType(Integer postType) {
		this.postType = postType;
	}

	public Integer getBoardId() {
		return boardId;
	}

	public void setBoardId(Integer boardId) {
		this.boardId = boardId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Topic getTopic() {
		return topic;
	}

	public void setTopic(Topic topic) {
		this.topic = topic;
	}
}
